package com.ruoyi.common.core.domain.base.datam;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * App版本号对象 version_upgrade
 *
 * @author hwd
 * @date 2023-05-18
 */
@Data
@TableName("version_upgrade")
public class VersionUpgrade extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** appid */
    @Excel(name = "appid")
    private Long appId;

    /** 版本标识 1.2 */
    @Excel(name = "版本标识 1.2")
    private String versionCode;

    /** 是否升级 1升级，0不升级 */
    @Excel(name = "是否升级 1升级，0不升级")
    private String type;

    /** apk的url */
    @Excel(name = "apk的url")
    private String apkUrl;

    /** 升级提示 */
    @Excel(name = "升级提示")
    private String upgradePoint;

    /** 正常0删除1 */
    @Excel(name = "正常0删除1")
    private String status;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createPerson;

    /** 修改人 */
    @Excel(name = "修改人")
    private String updatePerson;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setAppId(Long appId)
    {
        this.appId = appId;
    }

    public Long getAppId()
    {
        return appId;
    }
    public void setVersionCode(String versionCode)
    {
        this.versionCode = versionCode;
    }

    public String getVersionCode()
    {
        return versionCode;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setApkUrl(String apkUrl)
    {
        this.apkUrl = apkUrl;
    }

    public String getApkUrl()
    {
        return apkUrl;
    }
    public void setUpgradePoint(String upgradePoint)
    {
        this.upgradePoint = upgradePoint;
    }

    public String getUpgradePoint()
    {
        return upgradePoint;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setCreatePerson(String createPerson)
    {
        this.createPerson = createPerson;
    }

    public String getCreatePerson()
    {
        return createPerson;
    }
    public void setUpdatePerson(String updatePerson)
    {
        this.updatePerson = updatePerson;
    }

    public String getUpdatePerson()
    {
        return updatePerson;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("appId", getAppId())
            .append("versionCode", getVersionCode())
            .append("type", getType())
            .append("apkUrl", getApkUrl())
            .append("upgradePoint", getUpgradePoint())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createPerson", getCreatePerson())
            .append("updatePerson", getUpdatePerson())
            .toString();
    }
}
